Swift

  • Swift .

  • Documentation .

    • https://docs.swift.org/swift-book/documentation/the-swift-programming-language/properties/

  • CLI usage example .

  • Class, struct, and enum members are internal  by default, meaning they are only accessible within the same module.

  • Garbage Collector via Reference Counting.

  • Rust-styled borrow system.

Features

  • Swift in 1 minute .

  • Static typing.

  • Supports OOP, has classes and methods.

  • The creator of LLVM created Swift. It is LLVM-based.

  • Opinions :

    • "Very similar to C#, but more modern."

    • "Kotlin with better error handling, worse STD, and slightly better tooling."

    • "I played around with Swift back when I used to use Mac and I have to say… Swift is the most sensible, sane and pleasant language I’ve ever used. Simple for easy beginner things yet gives all the features & efficiency you could want for serious applications. Shame it doesn’t really exist outside of Apple’s ecosystem."

Package Manager: SwiftPM

  • Swift comes bundled with the Swift Package Manager (SwiftPM)  that manages the distribution of Swift code. It allows easy importing of other Swift packages into your applications and libraries.

Impressions

  • See Godot - GDExtensions  for the issues I had with the language.

  • It is a very solid language and seems good for beginners, but it doesn’t challenge me in any way and doesn’t seem to offer any advantage compared to the existing Python ecosystem.

  • Considering that the language doesn’t offer anything special, it’s not worth the loss of features and support that more popular languages have.

  • Obviously, not to mention that it is something immersed in the Apple environment, which leaves a bad taste.

  • The ecosystem seemed terrible, Windows support is weak and mostly neglected. I couldn’t get LSP to work, etc.

  • I got quite discouraged with the language, despite it being syntactically better than Kotlin.